package com.zr.dao;

import com.zr.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @auther zhaorui
 * @date 2019-11-28 - 14:09
 */
public interface OrderSettingDao {

    /**
     * 添加 预约设置
     * @param orderSetting
     */
    public void add(OrderSetting orderSetting);

    /**
     * 根据日期查询 当前是否存在相关联日期的预约设置
     * @param orderSettingDate
     * @return
     */
    public long getOrderSettingByDate(Date orderSettingDate);

    /**
     * 更新设置
     * @param orderSetting
     */
    public void updateOrderSettingByDate(OrderSetting orderSetting);

    /**
     * 查询所有
     * @param map
     * @return
     */
    public List<OrderSetting> findOrderSetting(Map map);


    public OrderSetting findOrderSettingByOrderDate(Date orderDate);
}
